package com.java.exer9;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        //Interface1.a;

        Student2[] stus = {
                new Student2("xiaoming", 20, true),
                new Student2("wang", 22, false),
                new Student2("zhang", 21, false),
                new Student2("li", 18, true),
        };

//		SortUtil.sort(stus);

        Arrays.sort(stus);

        for (Student2 s : stus) {
            System.out.println(s);
        }
    }
}
